import org.junit.Test;

public class testJVM {

    public class GCObj{
        public  GCObj instance;
    }
    @Test
    public void testGC(){
        GCObj gcObj = new GCObj();
        GCObj gcObj2 = new GCObj();
        gcObj.instance=gcObj2;
        gcObj2.instance=gcObj;
        gcObj=null;
        gcObj2=null;
        System.gc();
    }
}
